home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
angel_fr.swf
/
scripts
/
frame_4
/
DoAction_4.as
< prev
next >
Wrap
Text File
|
2013-04-24
|
3KB
|
139 lines
pause_spk.play_txt._visible = false;
pause_spk.off_txt._visible = false;
pause_screen._visible = false;
var pause_flag = false;
pause_spk.play_txt.onRollOver = function()
{
if(on_game_flag)
{
this.gotoAndStop(2);
}
};
pause_spk.play_txt.onRollOut = function()
{
if(on_game_flag)
{
this.gotoAndStop(1);
}
};
pause_spk.play_txt.onRelease = pause_spk.play_txt.onReleaseOutside = function()
{
if(on_game_flag)
{
all_pause_time += getTimer() - now_pause_time;
this._visible = false;
pause_flag = false;
pause_screen._visible = false;
sound_play(0,99999);
if(blood_count > 9)
{
sound_play(11,9999);
}
pause_spk.pause_txt._visible = true;
if(pause_spk.pause_bt._currentframe == 1)
{
pause_spk.pause_bt.gotoAndStop(2);
}
else
{
pause_spk.pause_bt.gotoAndStop(1);
}
i_txt.text = "";
var i = 0;
while(i < 9)
{
if(eval("q_boy_" + i).boy._currentframe != 1)
{
eval("q_boy_" + i).boy.play();
}
i++;
}
}
};
pause_spk.pause_txt.onRollOver = function()
{
if(on_game_flag)
{
this.gotoAndStop(2);
}
};
pause_spk.pause_txt.onRollOut = function()
{
if(on_game_flag)
{
this.gotoAndStop(1);
}
};
pause_spk.pause_txt.onRelease = pause_spk.pause_txt.onReleaseOutside = function()
{
if(on_game_flag)
{
now_pause_time = getTimer();
stopAllSounds();
pause_flag = true;
pause_screen._visible = true;
this._visible = false;
pause_spk.play_txt._visible = true;
if(pause_spk.pause_bt._currentframe == 1)
{
pause_spk.pause_bt.gotoAndStop(2);
}
else
{
pause_spk.pause_bt.gotoAndStop(1);
}
var i = 0;
while(i < 9)
{
eval("q_boy_" + i).boy.stop();
i++;
}
}
};
pause_spk.on_txt.onRollOver = function()
{
this.gotoAndStop(2);
};
pause_spk.on_txt.onRollOut = function()
{
this.gotoAndStop(1);
};
pause_spk.on_txt.onRelease = pause_spk.on_txt.onReleaseOutside = function()
{
sound_flag = false;
stopAllSounds();
this._visible = false;
pause_spk.off_txt._visible = true;
if(pause_spk.spk_bt._currentframe == 1)
{
pause_spk.spk_bt.gotoAndStop(2);
}
else
{
pause_spk.spk_bt.gotoAndStop(1);
}
};
pause_spk.off_txt.onRollOver = function()
{
this.gotoAndStop(2);
};
pause_spk.off_txt.onRollOut = function()
{
this.gotoAndStop(1);
};
pause_spk.off_txt.onRelease = pause_spk.off_txt.onReleaseOutside = function()
{
sound_flag = true;
sound_play(0,9999);
this._visible = false;
pause_spk.on_txt._visible = true;
if(pause_spk.spk_bt._currentframe == 1)
{
pause_spk.spk_bt.gotoAndStop(2);
}
else
{
pause_spk.spk_bt.gotoAndStop(1);
}
};